
<div role="main" class="container">


  <div class="page-header" style="margin-top:3em;">

<div ng-show="error_occured">
  <alert type="danger" close="error_occured=false">{{retStatus}}</alert>
</div>

<div ng-show="regok">
  <alert type="danger" close="regok=false">User registered, now check your email. Follow the link in that email to activate membership!</alert>
              <button class="btn btn-primary" ng-click="frontpage()">Frontpage</button>
              </div>

    <div class="row-fluid">

<div ng-show="!regok">
<form name="signup" ng-submit="ok()" method="post">

      <div class="control-group">
        <label>First name</label>
        <div class="controls">
          <input type="text" name="firstname" ng-model="newuser.firstName" class="span4" tabindex="1" value="" maxlength="200">
        </div>
      </div>
      <div class="control-group">
        <label>Last name</label>
        <div class="controls">
          <input type="text" name="lastname" ng-model="newuser.lastName" class="span4" tabindex="2" value="" maxlength="200">
        </div>
      </div>      
      <div class="control-group">
        <label>Email</label>
        <div class="controls">
          <input type="text" name="email" ng-model="newuser.email" class="span4" tabindex="3" value="" maxlength="200" data-test="email">
        </div>
      </div>      
      <div class="control-group">
        <label>Password</label>
        <div class="controls">
          <input type="password" name="password_new" ng-model="newuser.password" tabindex="4" maxlength="20" data-test="password_new" />
        </div>
      </div>
      <div class="control-group">
        <label>Verify password</label>
        <div class="controls">
          <input type="password" name="password_check" ng-model="newuser.pw2" tabindex="5" maxlength="20" data-test="password_check" />
        </div>
      </div>
      <p>
        <label><h4>Terms and conditions</h4></label>
        <ul>
          <li>
            <a href="http://beta.eddevedde.com/wordpress/?page_id=21" target="_blank">Terms of Service</a>
          </li>
        </ul>
      </p> 
      <p>
          I accept : <input type="checkbox" ng-model="newuser.agree" value="ok" name="agree"> 


      </p>
      <p class="submit">
        <input type="Submit" value="Signup" ng-disabled="newuser.password==null || newuser.password.length<5 || !(newuser.password == newuser.pw2)"/>
      </p>
    </form>
</div>


    </div>

  </div>

</div>
